package org.wj.problem;

public class IsPalindrome {
	public static void main(String[] args) {

		int m = 12344321;
		System.out.println(isPalindrome(m));

	}

	private static boolean isPalindrome(int number) {
		if (number < 10) {
			return true;
		}
		int highest = 1;
		while (number / highest > 10) {
			highest = highest * 10;
		}
		int right = number / highest;
		int left = number % 10;
		return right == left;
	}

}
